﻿namespace WLFramework.Validation
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class DisplayAttribute : Attribute
    {
        private string _friendlyName;
        public string FriendlyName
        {
            get { return _friendlyName; }
            set { _friendlyName = value; }
        }

        private string _inputName;
        public string InputName
        {
            get { return _inputName; }
            set { _inputName = value; }
        }

        // TODO: 表示表单类型
        // public int InputType { get; set; }

        public DisplayAttribute(string friendlyName) : this(friendlyName, null) { }
        public DisplayAttribute(string friendlyName, string inputName)
        {
            this._friendlyName = friendlyName;
            this._inputName = inputName;
        }
    }
}